package com.nengchuan.kbms.dfs.service;

import com.nengchuan.kbms.common.IPageService;
import com.nengchuan.kbms.dfs.entity.dto.UserFavoriteDTO;
import com.nengchuan.kbms.dfs.entity.po.UserFavorite;

import java.io.Serializable;

/**
 * <p>
 * 文件收藏 服务类
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
public interface UserFavoriteService extends IPageService<UserFavorite> {

    /**
     * 收藏
     */
    boolean collect(UserFavoriteDTO userFavoriteDTO);

    /**
     * 根据用户id及业务id删除用户收藏的数据
     */
    boolean delete(Long userId, Serializable bizId);
}
